package atguigu.cglib.demo2;

public class Kid {

	public void eat(Food food) {
		System.out.println("吃"+food.foodName());
	}
	
	public void washhand() {
		System.out.println("洗手");
	}
	
	public void brushTeeth() {
		System.out.println("刷牙");
	}
}

enum Food{
	
	RICE("米饭"),APPLE("苹果");
	
	private String foodName;
	
	private Food(String name) {
		this.foodName = name;
	}
	public String foodName() {
		return foodName;
	}
}
